package com.autumn.mybatis.mapper;

import java.lang.reflect.Method;

/**
 * Mapper 信息
 * 
 * @author 老码农
 *
 *         2017-12-08 14:29:13
 */
public class MapperInfo {

	private final String msId;
	private final Method method;
	private final Class<?> mapperClass;
	private final Class<?> entityClass;

	/**
	 * 
	 * @param msId
	 *            myBatis 对象 id
	 * @param method
	 *            方法
	 * @param mapperClass
	 * @param entityClass
	 */
	public MapperInfo(String msId, Method method, Class<?> mapperClass, Class<?> entityClass) {
		super();
		this.msId = msId;
		this.method = method;
		this.mapperClass = mapperClass;
		this.entityClass = entityClass;
	}

	/**
	 * 获取 msId
	 * 
	 * @return 2017-12-08 14:31:38
	 */
	public String getMsId() {
		return msId;
	}

	/**
	 * 获取方法
	 * 
	 * @return 2017-12-08 14:48:45
	 */
	public Method getMethod() {
		return method;
	}

	/**
	 * 获取 Mapper 类名
	 * 
	 * @return 2017-12-08 14:32:02
	 */
	public Class<?> getMapperClass() {
		return mapperClass;
	}

	/**
	 * 获取实体类型
	 * 
	 * @return 2017-12-08 14:47:26
	 */
	public Class<?> getEntityClass() {
		return entityClass;
	}

}
